package mxm.amfire.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import mxm.amfire.FuncFragment;
import mxm.amfire.LogoFragment;
import mxm.amfire.LogosFragment;

/**
 * Created by zengpeijin on 2017/2/10.
 */

public class HomePagerFragmentAdapter extends FragmentPagerAdapter {

    public HomePagerFragmentAdapter(FragmentManager fm) {
        super(fm);
    }
    @Override
    public Fragment getItem(int position) {
        if(position==0){
            return LogosFragment.newInstance();
        }else{
            return FuncFragment.newInstance();
        }
    }

    @Override
    public int getCount() {
        return 2;
    }
}
